package fjh.Interface;

public class Fly_Test {

    public void makeFly(CanFly canFly)
    {
        canFly.fly();
    }
    public static void main(String[] args) {
        CanFly canFly;
        canFly=new Bird();
        canFly.fly();
        canFly=new Plane();
        canFly.fly();

        Fly_Test fly_test=new Fly_Test();
        fly_test.makeFly(canFly);
        canFly=new Bird();
        fly_test.makeFly(canFly);
    }
}
